package online.longzipeng.modules.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import lombok.Data;

/**
 * @author lzp
 * @Description: groovy script auto generate 
 */
@Data
@TableName("user")
public class User {

    /**
     *  自增id
     */
    @ApiModelProperty(name = "id",dataType = "Integer", value="自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     *  nickName
     */
    @ApiModelProperty(name = "nickName",dataType = "String", value="nickName")
    private String nickName;

    /**
     *  年龄
     */
    @ApiModelProperty(name = "age",dataType = "Integer", value="年龄")
    private Integer age;

    /**
     *  1男 2女 0未知
     */
    @ApiModelProperty(name = "sex",dataType = "Integer", value="1男 2女 0未知")
    private Integer sex;

    /**
     *  用户名 保证唯一
     */
    @ApiModelProperty(name = "userName",dataType = "String", value="用户名 保证唯一")
    private String userName;

    /**
     *  创建时间
     */
    @ApiModelProperty(name = "createTime",dataType = "Date", value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
